# coding: utf-8

a_list = [2, 30, 'a', [5, 30], 30]
# 计算列表中30的出现次数
print(a_list.count(30))  # 2
# 计算列表中[5, 30]的出现次数
print(a_list.count([5, 30]))  # 1
